<?php

include_once('db.php');

$email = mysql_real_escape_string($_GET['email']);

$user = fetch_only("SELECT `Email` FROM `USER` WHERE `Email`='$email'");

if (empty($user)) {
	echo '1';
} else {
	echo '0';
}

function fetch_only($query) {
	$result = mysql_query($query);
	
	if (mysql_error()) {
		die(mysql_error());
	}
	
	return mysql_fetch_assoc($result);
}

?>